package org.cuatrovientos.kart;

/**
 * @author berrade
 *
 */

public class Car extends Vehicle {
	
	private String registration;

	/**
	 * Constructor for the car
	 * @param name
	 * @param registration
	 */
	public Car(String name, String registration) {
		super(name);
		this.registration = registration;
	}

	/**
	 * To string for all attributes including super class ones
	 */
	@Override
	public String toString() {
		return "Car [registration=" + registration + ", name=" + name
				+ ", speed=" + speed + ", grip=" + grip + ", aceleration="
				+ aceleration + "]";
	}

	
	
	
	

}
